package com.sxt.sys.controller;


import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;

import com.sxt.springcloud.sys.LoginfoClientService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sxt.sys.common.DataGridView;
import com.sxt.sys.common.ResultObj;
import com.sxt.sys.domain.Loginfo;

import com.sxt.sys.vo.LoginfoVo;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 老雷
 * @since 2019-09-21
 */
@RestController
@RequestMapping("/loginfo")
public class LoginfoController {
	
	@Autowired
	private LoginfoClientService loginfoService;
	
	/**
	 * 全查询
	 */
	@RequestMapping("loadAllLoginfo")
	public DataGridView loadAllLoginfo( LoginfoVo loginfoVo) {
		return this.loginfoService.loadAllLoginfo(loginfoVo);
	}
	
	
	/**
	 * 删除
	 */
	@RequestMapping("deleteLoginfo")
	public ResultObj deleteLoginfo(@RequestParam("id") Integer id) {
		return this.loginfoService.deleteLoginfo(id);
	}
	
	
	/**
	 * 批量删除
	 */
	@RequestMapping("batchDeleteLoginfo")
	public ResultObj batchDeleteLoginfo( LoginfoVo loginfoVo) {
		return this.loginfoService.batchDeleteLoginfo(loginfoVo);
	}

}

